import request from '@/utils/request';
import qs from 'qs';

// 会员异常解除申请列表
export function getMemberriskApplyListApi(query) {
  return request({
    url: `/v1/memberrisk/getList`,
    method: 'post',
    data: query
  });
}

// 会员异常解除申请详情
export function getApplyDetailsApi(query) {
  return request({
    url: `/v1/memberrisk/getDetail`,
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: qs.stringify(query)
  });
}

// 会员状态变更详情
export function getChangeRecordsApi(query) {
  return request({
    url: `/v1/memberrisk/getMemberChangeRecords`,
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: qs.stringify(query)
  });
}

// 会员状态变更
export function updateStatusApi(query) {
  return request({
    baseURL: process.env.NEWS_API,
    url: `/member/risk/update_status`,
    method: 'post',
    data: query
  });
}

